<!-- 
    @file: 首页广告模块组件
    @auth: lizibin
 -->
<template>
    <div class="adBox">
        <div class="up-right">
            <el-icon>
                <CloseBold />
            </el-icon>
        </div>
        <a :href="advertisingLink" target="_blank">
            <img :src="advertisingImg" alt="">
        </a>
    </div>
</template>
<script lang="ts" setup>
type Props = {
    advertisingImg?: string,
    advertisingLink?: string,
}
const props = withDefaults(defineProps<Props>(), {
    advertisingImg: '',
    advertisingLink: '',
},)
</script>

<style scoped>
.adBox {
    position: relative;
    width: 100%;
    background: white;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
}

.up-right {
    position: absolute;
    top: 0;
    right: 0;
}

.adBox img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
</style>